<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8" isELIgnored="false"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html>
<html>
<head>
    <title></title>
    <meta charset="UTF-8">
    <link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/Css/bootstrap.css" />
    <link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/Css/bootstrap-responsive.css" />
    <link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/Css/style.css" />

 

    <style type="text/css">
        body {
            padding-bottom: 40px;
        }
        .sidebar-nav {
            padding: 9px 0;
        }

        @media (max-width: 980px) {
            /* Enable use of floated navbar text */
            .navbar-text.pull-right {
                float: none;
                padding-left: 5px;
                padding-right: 5px;
            }
        }


    </style>
</head>
<body>
<form class="form-inline definewidth m20" action="#" method="get">    
    OPENID：
    <input type="text" name="username" id="username"class="abc input-default" placeholder="" value="">&nbsp;&nbsp;  
    <button type="submit" class="btn btn-primary">查询</button>
      <a type="button" class="btn btn-primary" href=""><i class=" icon-refresh icon-white"></i></a>
</form>
<table class="table table-bordered table-hover definewidth m10">
 <thead>
    <tr>
        <th>编号</th>
        <th>微信OPENID</th>
        <th>用户生活照</th>
        <th>真实姓名</th>
        <th>性别</th>
        <th>联系方式</th>
        <th>审核</th>
    </tr>
    </thead>
<c:forEach items="${users}" var="user" varStatus="status" >

	     <tr>
	        <td>${status.count }</td>
            <td>${user.openid }</td>
            <td><img src="${user.image_url }" /></a></td>
            <td>${ user.name}</td>
            <td>
            	<c:choose>
            		<c:when test="${user.sex==1}">
            			男
            		</c:when>
            		<c:otherwise>
            			女
            		</c:otherwise>
            	</c:choose>
           </td>
            <td>${user.telphone }</td>
            <td>
             <c:choose>
            		<c:when test="${user.audit==2}">
            			未通过审核
            		</c:when>
            		<c:otherwise>
            			异常
            		</c:otherwise>
            	</c:choose>      
            </td>
        </tr>	    
     </c:forEach>
</table>
</body>
</html>
